home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
002
/
chedit.arc
/
REPLACEP.BUG
< prev
next >
Wrap
Text File
|
1986-07-23
|
3KB
|
52 lines
{
This program is placed in the public domain by its author, William Couture.
Copyright (c) 1986 by DDI. All Rights Reserved.
}
procedure grchar(whichchar,color:integer);
{ NOTE: whichchar is 0..127 OR 128..255
color is 0..3 in 320x200 mode, 0..1 in 640x200 mode }
begin
if color = 0 then
{ The character used to erase the screen is the space from
the regular character set. If you wish to use a different
character, change the sequence $b0/$20 to $b0/$?? where ??
is the hex code of the character to be used ($00..$7f for
regular characters, $80..$ff for graphics characters) }
inline($b4/$09/$b0/$20/$b3/$01/$b9/$01/$00/$55/$cd/$10/$5d)
else
{ Currently, this routine always turns on the high bit, making
the character a graphics character. If you wish to use
0..127 as graphics characters and 128..255 as the regular
characters, change the $0c after the <whichchar to a $04
i.e. <whichchar/$0c becomes <whichchar/$04 }
inline($b4/$09/$8a/$46/<whichchar/$0c/$80/$8a/$5e/<color/$b9/
$01/$00/$55/$cd/$10/$5d);
end;
procedure gratchar(row,col,whichchar,color:integer);
{ NOTE: whichchar is 0..127 OR 128..255
row is 1..25
col is 1..40 in 320x200 mode, 1..80 in 640x200 mode
color is 0..3 in 320x200 mode, 0..1 in 640x200 mode }
begin
if color = 0 then
{ The character used to erase the screen is the space from
the regular character set. If you wish to use a different
character, change the sequence $b0/$20 to $b0/$?? where ??
is the hex code of the character to be used ($00..$7f for
regular characters, $80..$ff for graphics characters) }
inline($b4/$02/$8a/$76/<row/$fe/$ce/$8a/$56/<col/$fe/$ca/$b7/$00/
$55/$cd/$10/$5d/$b4/$09/$b0/$20/$b3/$01/$b9/$01/$00/$55/
$cd/$10/$5d)
else
{ Currently, this routine always turns on the high bit, making
the character a graphics character. If you wish to use
0..127 as graphics characters and 128..255 as the regular
characters, change the $0c after the <whichchar to a $04
i.e. <whichchar/$0c becomes <whichchar/$04 }
inline($b4/$02/$8a/$76/<row/$fe/$ce/$8a/$56/<col/$fe/$ca/$b7/$00/
$55/$cd/$10/$5d/$b4/$09/$8a/$46/<whichchar/$0c/$80/$8a/$5e/
<color/$b9/$01/$00/$55/$cd/$10/$5d);
end;